/*
 * @Author: June
 * @Date: 2022-11-17 16:26:18
 * @LastEditors: June
 * @LastEditTime: 2022-11-17 16:33:02
 * @Description: 设备管理路由
 *
 */
import Layout from '@/layout'
export const deviceManagement = {
  path: '/device',
  component: Layout,
  redirect: '/device/deviceInformation',
  alwaysShow: true,
  meta: {
    title: '设备管理', icon: 'icon-shebeiguanli'
  },
  children: [
    {
      path: 'deviceInformation',
      name: 'DeviceInformation',
      component: () => import('@/views/deviceManagement/deviceInformation'),
      meta: { title: '设备台账', icon: 'icon-caijishebeixinxichaxun' }
    },
    {
      path: '/device/dre',
      component: () => import('@/views/deviceManagement/repairManage'),
      alwaysShow: true,
      meta: { title: '工单管理', icon: 'icon-tubiaozhizuomoban-133' },
      children: [
        {
          path: 'repairManageInfo',
          name: 'RepairManageInfo',
          component: () => import('@/views/deviceManagement/repairManage/repairManageInfo'),
          meta: { title: '维修工单', icon: 'icon-tubiaozhizuomoban-133' }
        },
        {
          path: 'repairRecord',
          name: 'RepairRecord',
          component: () => import('@/views/deviceManagement/repairManage/repairRecord'),
          meta: { title: '工单登记', icon: 'icon-weixiujilu' }
        }

      ]
    },
    {
      path: '/device/dmn',
      component: () => import('@/views/deviceManagement/maintainManage'),
      alwaysShow: true,
      meta: { title: '保养管理', icon: 'icon-xiangmubaoyang-xian' },
      children: [
        {
          path: 'maintainPlan',
          name: 'MaintainPlan',
          component: () => import('@/views/deviceManagement/maintainManage/maintainPlan'),
          meta: { title: '保养计划', icon: 'icon-baoyangrenwu' }
        },
        {
          path: 'maintainImplement',
          name: 'MaintainImplement',
          component: () => import('@/views/deviceManagement/maintainManage/maintainImplement'),
          meta: { title: '保养执行', icon: 'icon-shebeiguanli1' }
        },
        {
          path: 'maintainProject',
          name: 'MaintainProject',
          component: () => import('@/views/deviceManagement/maintainManage/maintainProject'),
          meta: { title: '保养项目', icon: 'icon-baoyangrenwu' }
        }

      ]
    },
    {
      path: '/device/scm',
      component: () => import('@/views/deviceManagement/spotCheck'),
      alwaysShow: true,
      meta: { title: '点检管理', icon: 'icon-shebeidianjian' },
      children: [
        {
          path: 'spotCheckPlan',
          name: 'SpotCheckPlan',
          component: () => import('@/views/deviceManagement/spotCheck/spotCheckPlan'),
          meta: { title: '点检计划', icon: 'icon-dianjianjichu' }
        },
        {
          path: 'spotCheckDaily',
          name: 'SpotCheckDaily',
          component: () => import('@/views/deviceManagement/spotCheck/spotCheckDaily'),
          meta: { title: '日常点检', icon: 'icon-bianzu13' }
        },
        {
          path: 'spotCheckStandard',
          name: 'SpotCheckStandard',
          component: () => import('@/views/deviceManagement/spotCheck/spotCheckStandard'),
          meta: { title: '点检标准', icon: 'icon-pindianjiancha' }
        }

      ]
    },
    {
      path: 'knowledgeBase',
      name: 'KnowledgeBase',
      component: () => import('@/views/deviceManagement/knowledgeBase'),
      meta: { title: '设备数据库', icon: 'icon-icon_zhishiku' }
    },
    {
      path: 'equipmentStatistics',
      name: 'EquipmentStatistics',
      component: () => import('@/views/deviceManagement/equipmentStatistics'),
      meta: { title: '设备统计', icon: 'icon-icon_zhishiku' }
    }
  ]
}
